package com.itcast.consumer.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itcast.consumer.domain.Setmeal;
import com.itcast.consumer.domain.request.SetmealPageReqDTO;
import com.itcast.consumer.domain.response.SetmealDetailResDTO;
import com.itcast.consumer.domain.response.SetmealPageResDTO;

import java.util.List;


/**
 * <p>
 * 套餐表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-11-05
 */
public interface SetmealMapper extends BaseMapper<Setmeal> {

    /**
     * 分页查询套餐
     * @param setmealPageReqDTO
     * @return
     */
    List<SetmealPageResDTO> pageQuery(SetmealPageReqDTO setmealPageReqDTO);

    /**
     * 根据套餐id查询套餐详情
     * @param setmealId
     * @return
     */
    SetmealDetailResDTO findDetail(Integer setmealId);
}
